package com.imooc.security.core.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Zqm
 * @Title: BrowserProperties
 * @ProjectName imooc-security
 * @date 2018/12/19
 */
@ConfigurationProperties(prefix = "imooc.security.browser")
@Component
public class BrowserProperties {


    /**
     * 默认的登录页面
     */
    private String loginPage="/imooc-signIn.html";


    /**
     * 默认返回json  返回
     */
    private LoginType loginType=LoginType.JSON;


    /**
     * 记住我时间
     */
    private int rememberMeSeconds=3600;

    public LoginType getLoginType() {
        return loginType;
    }

    public void setLoginType(LoginType loginType) {
        this.loginType = loginType;
    }

    public String getLoginPage() {
        return loginPage;
    }

    public void setLoginPage(String loginPage) {
        this.loginPage = loginPage;
    }

    public int getRememberMeSeconds() {
        return rememberMeSeconds;
    }

    public void setRememberMeSeconds(int rememberMeSeconds) {
        this.rememberMeSeconds = rememberMeSeconds;
    }
}
